<%@ page import="org.springside.core.Constants"%>
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<fmt:message key="calendar_portal_label1" var="calendar_portal_label1" />
<fmt:message key="calendar_portal_label2" var="calendar_portal_label2" />
<fmt:message key="calendar_portal_label3" var="calendar_portal_label3" />
<fmt:message key="calendar_portal_label4" var="calendar_portal_label4" />
<fmt:message key="calendar_portal_label5" var="calendar_portal_label5" />

<ff:boxportlet header="${calendar_portal_label1}">
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="padding-left:5px">
	<tr>
		<td valign="top">
	<table width="100%" border="0" align="center" cellpadding="0"
		cellspacing="0" class="tbl_left_ico">

		<c:forEach var="calendarList" begin="0" end="4"
			items="${calendarLists}">
			<tr>
				<td> <a href="#"
					onClick='mainJump("/modules/calendar/calendars.do?method=show&id=${calendarList.calendars.id}&op=waitJoin","<%=Constants.USER_THEME_FRAME%>")'
					title="${calendarList.calendars.name==null?"":calendarList.calendars.name}">
				<c:if
					test="${fn:length(calendarList.calendars.name==null?'':calendarList.calendars.name)> param.y}">
             	${fn:substring(calendarList.calendars.name==null?"":calendarList.calendars.name,0, param.y)}...
             </c:if> <c:if
					test="${fn:length(calendarList.calendars.name==null?'':calendarList.calendars.name)<= param.y}">
             	${calendarList.calendars.name==null?"":calendarList.calendars.name}
             </c:if> </a>
				(<font color="#999999"><fmt:formatDate value="${calendarList.calendars.startday==null?'':calendarList.calendars.startday}" pattern="MM-dd HH:mm"/></font>)
				${(calendarList.responsionstatu ne 9)?'':calendar_portal_label4}</td>
			</tr>
		</c:forEach>
		<c:if test="${fn:length(calendarLists==null?'':calendarLists) < 1}">
			<tr>
				<td>&nbsp;</td>
			</tr>
		</c:if>
		<c:if test="${fn:length(calendarLists==null?'':calendarLists) < 2}">
			<tr>
				<td>&nbsp;</td>
			</tr>
		</c:if>
		<c:if test="${fn:length(calendarLists==null?'':calendarLists) < 3}">
			<tr>
				<td>&nbsp;</td>
			</tr>
		</c:if>
		<c:if test="${fn:length(calendarLists==null?'':calendarLists) < 4}">
			<tr>
				<td>&nbsp;</td>
			</tr>
		</c:if>
		<c:if test="${fn:length(calendarLists==null?'':calendarLists) < 5}">
			<tr>
				<td>&nbsp;</td>
			</tr>
		</c:if>

	</table>
	<table width="100%" height="17">
        <tr>
          <td>&nbsp;</td>
          <td width="30" class="tbl_more_ico_td">
          <a href="#" class="link_portlet" onClick='mainJump("/modules/calendar/calendars.do?method=calendarWaitJoin&ec_s_startday=desc","<%=Constants.USER_THEME_FRAME %>")'
         	title="<fmt:message key="common_more" />"><fmt:message key="common_more" /></a></td>
        </tr>
     </table>
		</td>
	</tr>
</table>
</ff:boxportlet>

